package cn.knight.productfeign;

import cn.knight.domain.Store;
import cn.knight.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "store-server", fallbackFactory = ProductFallback.class)
public interface ProductFeignClient {

    @PostMapping("/store/save")
    Result save(@RequestBody Store store);
}
